[PV-on-HVM] blkfront: use %Lu instead of %llu to xenbus_gather.
authorIan Campbell <ian.campbell@xensource.com>
Tue, 2 Jan 2007 14:19:47 +0000 (14:19 +0000)
committerIan Campbell <ian.campbell@xensource.com>
Tue, 2 Jan 2007 14:19:47 +0000 (14:19 +0000)
The 'll' length modifier is not available with scanf (and therefore
xenbus_gather) on older kernel versions so use 'L' which is available at
least back to 2.6.5.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c

index ff1425980916f18b88d9a6ae3dacff233a435973..5b07416fa2c659ccecc8b3bf8e8c95b860cb83f2 100644 (file)
@@ -306,7 +306,7 @@ static void connect(struct blkfront_info *info)
        DPRINTK("blkfront.c:connect:%s.\n", info->xbdev->otherend);
 
        err = xenbus_gather(XBT_NIL, info->xbdev->otherend,
-                           "sectors", "%llu", &sectors,
+                           "sectors", "%Lu", &sectors,
                            "info", "%u", &binfo,
                            "sector-size", "%lu", &sector_size,
                            NULL);